﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EPiServer.Models.BaseModel>" %>
<select class="languageButton">
<% foreach(var link in Model.Languages) { %>
    <option value="<%= link.LinkURL %>"><%= link.PageName %></option>
<% } %>
</select>
<%-- 
TODO: hantera när man byter. ev posta mot en LanguageController.. alt, länka rätt direkt

TODO: hantera noscript

<noscript>
    <asp:Button runat="server" ID="LanguageButton" OnClick="ChangeLanguage" Text="OK" Visible="false" />
</noscript>
--%>